package com.tools.cleanmaster;

public class CleanConstant {

    /////////////////////////////// old constant start ///////////////////////////////

    public static final String TAG = "CleanConstant";
    public static String REAL_PACKAGE_NAME;

    public static int CPU_CORES = 1;
    public static final boolean SHOW_MYSELF = false;

    public static final String PLAY_PACKAGE_NAME = "com.android.vending";

    //AliveReceiver
    public static final String ALIVE_RECEIVER_FROM = "a_f"; //alive where from
    public static final String ACTION_PACKAGE_CHANGE = REAL_PACKAGE_NAME + ".action.PKG_CHANGE";
    public static final String ACTION_ALIVE_RECEIVER = REAL_PACKAGE_NAME + ".action.swipe";
    public static final String ACTION_AUTO_CLEAN_TASK = REAL_PACKAGE_NAME + ".action.autoclean";

    public static final String EXTRA_INTENT = "extra.intent";
    public static final String EXTRA_FROM_KEY = "extra.from";
    public static final String EXTRA_FROM_CLEAN_MASTER_KEY = "extra.cleanmaster.from";
    public static final int EXTRA_FROM_VALUE_STATUSBAR = 0;

    public static final int TIME_ONE_HOUR = 60 * 60 * 1000;
    public static final int TIME_ONE_DAY = 24 * TIME_ONE_HOUR;

    public static final long MB = 1024 * 1024;
    public static final long TRASH_CLEAN_50M = 50 * MB;
    public static final long TRASH_CLEAN_100M = 2 * TRASH_CLEAN_50M;
    public static final long TRASH_CLEAN_150M = 3 * TRASH_CLEAN_50M;
    public static final long TRASH_CLEAN_200M = 4 * TRASH_CLEAN_50M;
    public static final long TRASH_CLEAN_300M = 6 * TRASH_CLEAN_50M;
    public static final long TRASH_CLEAN_1G = 1 * 1024 * 1024 * 1024;

    public static final long TRASH_CLEAN_5G = 5 * TRASH_CLEAN_1G;

    public static final int ALIVE_RECEIVER_FROM_ALARM = 1;

    public static final int PHONE_CLEANER_NOTIFICATION = 1;

    public static final int PHONE_CLEANER_NOTIFICATION_TIME = 1;

    public static final int PHONE_CLEANER_NOTIFICATION_HOME = 2;

    public static final int PHONE_CLEANER_FROM_NOTIFICATION_TIME = 3;

    public static final int PHONE_CLEANER_FROM_NOTIFICATION_HOME = 4;

    public static final int EXTRA_FROM_VALUE_CLEAN_MASTER = 99;

    public static void init(CleanApplication application) {
        CPU_CORES = Runtime.getRuntime().availableProcessors();
        REAL_PACKAGE_NAME = application.getPackageName();
    }

    /////////////////////////////// old constant end ///////////////////////////////

    /**
     * 开启开发者模式，默认是关闭
     **/
    public static final String KEY_OPEN_DEVELOPER = "key_open_developer";

    public static final String CLAUSE_HTML_NAME = "clause_html_name";

    /**
     * 充电锁屏的开关
     */
    public static final String KEY_CHARGING_FUNC_ENABLE = "key_charging_func_enable";

    /**
     * 闪屏页 -- 是否同意免责声明和隐私条款
     */
    public static final String KEY_SPLASH_AGREE_CLAUSE = "key_splash_agree_clause";

    //功能开关状态
    public static final String KEY_ENABLE_FEATURE = "enable_";
    public static final String KEY_AUTO_CLEAN_FREQUENCY = "key_auto_clean_frequency";
    public static final String KEY_AUTO_CLEAN_TOTAL_SIZE = "key_auto_clean_total_size";
    public static final String KEY_AUTO_CLEAN_LAST_SIZE = "key_auto_clean_last_size";

    // 显示反馈提示对话框
    public static final String KEY_SHOW_FEEDBACK_DIALOG = "key_show_feedback_dialog";


    public static final String ANIM_PATH = "ani/";

    public static final String ANIM_IMAGE_PATH = "ani/images/";

}
